package com.wang.user.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 帖子
 * @TableName post
 */
@TableName(value ="post")
@Data
public class Post {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 标题
     */
    @TableField(value = "title")
    @ApiModelProperty(value = "标题")
    private String title;

    /**
     * 内容
     */
    @TableField(value = "content")
    @ApiModelProperty(value = "内容")
    private String content;

    /**
     * 关联的商铺id
     */
    @TableField(value = "shop_id")
    @ApiModelProperty(value = "关联的商铺id")
    private Long shopId;

    /**
     * 发帖用户id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "发帖用户id")
    private Integer userId;

    /**
     * 关键词
     */
    @TableField(value = "keywords")
    @ApiModelProperty(value = "关键词")
    private String keywords;

    /**
     * 图片地址
     */
    @TableField(value = "image_url")
    @ApiModelProperty(value = "图片地址")
    private String imageUrl;

    /**
     * 状态【0-待审核 1-审核通过 2-审核拒绝】
     */
    @TableField(value = "status")
    @ApiModelProperty(value = "状态【0-待审核 1-审核通过 2-审核拒绝】")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
}